Use repository secret instead of default token#63
Merged
tcharding merged 1 commit intorust-bitcoin:masterfrom Feb 16, 2026
Merged
Use repository secret instead of default token#63tcharding merged 1 commit intorust-bitcoin:masterfrom
tcharding merged 1 commit intorust-bitcoin:masterfrom
Conversation
Using nyonson's PAT to trigger the automated toolchain update PRs. This is slightly preferrable to the default GITHUB_TOKEN.
tcharding
approved these changes
Feb 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Without setting a
tokenthe job uses the defaultGITHUB_TOKENof the repository. But this only works if the "Allow GitHub Actions to create and approve pull requests" is enabled on the repository. I don't have perms to see if it is here onrust-psbt, but I bet it isn't. And I bet it is enabled over onrust-bitcoin-maintainer-toolswhich is why it worked over there.In any case, it is probably better to keep that setting disabled and use a user account PAT with just repo permission. I added mine to the
RBMT_PRSsecret in this repository (which I had permissions to do). Updating the job to use it.I have a PR open on the rbmt side to document these fun little github quirks: rust-bitcoin/rust-bitcoin-maintainer-tools#79